#ifndef _DAILYQUEST_H_
#define _DAILYQUEST_H_
#include "MgrBase.h"
#include "SimpleRefection.h"
class DailyQuest:public ReflectionBase
{
	DECL_REFLECTION(DailyQuest,"../../config/DailyQuest.xml");
public:
	int32			m_iID;
	std::string		m_sDisplayName;
	int32			m_iOrder;
	std::string		m_sIcon;
	EDailyQuestItemType m_eType;
	int32			m_iTargetCount;
	int32			m_iRewardCashNum;
	std::string		m_sDesc;
	rewrite virtual void OnArchieveReaded();
private:
};

typedef DefMangerTpl<DailyQuest> __DailyQuestManager; //eDefaultDef_Num
class DailyQuestManager:public __DailyQuestManager
{
public:
	static DailyQuestManager& Instance(){static DailyQuestManager _instance;return _instance;	}
	virtual void OnArchieveReaded();
	const std::vector<const DailyQuest*>& GetOrderedQuestList() const { return m_vQuests;}
private:
	DailyQuestManager(){}
	std::vector<const DailyQuest*> m_vQuests;
};

#endif
/////////////////////////////////////////
